<%@ include file="/common/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<style>
    body {
        overflow: auto;
    }
    .textArea{
        margin-bottom: 8px;
    }
    .textTs{
        float: left;
        width: 100px;
        margin-left: 45px;
        margin-top:8px;
    }
    .textD{
        float: left;
    }
    .textT{
        font-size: 15px;
    }
    .textBt{
        float: left;
        margin-left: 105px;
    }
    .form-control[disabled], fieldset[disabled] .form-control {
        cursor: pointer;
    }
</style>
<body ng-init="XH='${XH}';BT='${BT}';MBLX='${MBLX}';FLAG='${FLAG}';AutoViewPage=true;">
<div ng-controller="sbnrDetailController">
    <div style="margin-top: 25px;">
        <div style="float: right;margin-right: 65px;">
            <button type="button" ng-if="FLAG=='update'" class="btn btn-default btn-sm save" ng-click="update()">保存
            </button>
            <button type="button" ng-if="!sbnrInfo.SFSB" class="btn btn-default btn-sm save" ng-click="report()">预览并上报
            </button>
        </div>
    </div>
    <form id="myForm" name="validateForm">
        <div  style="float: left;margin: 30px 35px;width: 95%;">
            <div style="height: 35px;text-align: center;">
                <span style="font-size: 30px;">{{sbnrInfo.BT}}</span>
            </div>
            <div style="margin-bottom: 18px;margin-top:25px;width: 85%;height: 20px;">
                <span style="float: left;margin-left: 45px;">报告类型：</span>
                <div class="textD">
                    <span class="textT">{{sbnrInfo.MBLX_CN}}</span>
                </div>
                <span class="textBt">工作组：</span>
                <div class="textD">
                    <span class="textT">{{sbnrInfo.ZZJC}}</span>
                </div>
                <span ng-if="sbnrInfo.BGZT != 'RWTS' && sbnrInfo.BGZT != 'CG'" class="textBt">上报时间：</span>
                <div ng-if="sbnrInfo.BGZT != 'RWTS' && sbnrInfo.BGZT != 'CG'">
                    <span class="textT">{{sbnrInfo.SBSJ}}</span>
                </div>
            </div>
            <div class="textArea">
                <span class="textTs">审核人(组长)：</span>
                <div>
                    <input type="text" ng-model="sbnrInfo.SHR"
                           style="width: 78%;"
                           ng-disabled="AutoViewPage"
                           class="form-control easyui-validatebox"
                           data-options="validType:'length[1,50]',required:true,tipPosition:'bottom'"
                           placeholder="请输入审核人">
                </div>
            </div>
            <div class="textArea">
                <span class="textTs">审核意见：</span>
                <div>
                    <input type="text" ng-model="sbnrInfo.SHYJ"
                           style="width: 78%;"
                           ng-disabled="AutoViewPage"
                           class="form-control easyui-validatebox"
                           data-options="validType:'length[1,200]',required:true,tipPosition:'bottom'"
                           placeholder="请输入审核意见">
                </div>
            </div>
            <div class="textArea">
                <span class="textTs">填报人：</span>
                <div>
                    <input type="text" ng-model="sbnrInfo.LXR"
                           style="width: 78%;"
                           ng-disabled="AutoViewPage"
                           class="form-control easyui-validatebox"
                           data-options="validType:'length[1,50]',required:true,tipPosition:'bottom'"
                           placeholder="请输入填报人">
                </div>
            </div>
            <div class="textArea">
                <span class="textTs">手机：</span>
                <div>
                    <input type="text" ng-model="sbnrInfo.LXR_SJH"
                           style="width: 78%;"
                           ng-disabled="AutoViewPage"
                           class="form-control easyui-validatebox"
                           data-options="validType:['length[1,50]','mobile'],required:true,tipPosition:'bottom'"
                           placeholder="请输入手机号码">
                </div>
            </div>
            <div class="textArea">
                <span class="textTs">邮箱：</span>
                <div>
                    <input type="text" ng-model="sbnrInfo.LXR_email"
                           style="width: 78%;"
                           ng-disabled="AutoViewPage"
                           class="form-control easyui-validatebox"
                           data-options="validType:['length[1,50]','email'],required:true,tipPosition:'bottom'"
                           placeholder="请输入邮箱地址">
                </div>
            </div>
            <div ng-repeat="item in sbnrList" style="margin: 30px 25px;">
                <div style="margin-bottom: 15px;margin-left: 8px;">
                    <td>{{item.ZDMC}}</td>
                </div>
                <div>
                    <td>{{item.ZDTS}}</td>
                </div>
                <div  style="margin-top: 15px;">
                    <textarea elastic style="max-height: 100%;min-height: 100px;resize: none;width: 100%; border: 1px solid #CCC;"
                              ng-disabled="AutoViewPage"
                              ng-model="item.ZDNR" name="cs_tznr"
                              class="form-control easyui-validatebox" placeholder="请填写字段内容"
                              data-options="validType:'length[1,10000]',required:true,tipPosition:'bottom'"></textarea>
                </div>
                <div ng-hide="item.SFQYFJ==0">
                    <div ng-if="!uploadChanging" upload-file-list
                         style="width: 100%;margin-top: 8px;margin-left: 5px;"
                         ng-config="getWtjzUploadConfig(item.XH)"
                         ng-uploader="uploaderContainer.uploader"
                         class="uplod-file-container"></div>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript"
        src="<common:webRoot/>/resources/fwszpt/gzbg/sbnr/js/SbnrDetail.js?v=${sysversion}"></script>
</body>
<%@ include file="/common/footer.jsp" %>
